<?php
/**
 * RUBIK IT Solution & Development Co.ltd,
 *
 * PROJECT		: x4you
 * COPYRIGHT	: 2008
 * ------------------------------------------------------
 * 
 * DTO class of  #__label_key table
 *
 * @author			generator <hoadn@rubik.com.vn>
 * @access			public
 * @package			dbo.LabelKeyDTO
 *
 * Created on	: Friday, September 04, 2009
 */

// Importer
RCoreImporter::cls( "dbo.AbstractDTO" );

/**
 * @name LabelKeyDTO
 * The data transfer object class for table: #__label_key
 *
 * 
 */
class LabelKeyViewDTO extends AbstractDTO {

	// Keys
	var $id	= "N*|||key";
	
	// Foreign Keys

	// Colums
	var $key	 = "255S*";
	var $domain	 = "50S*";

	/**	
	 * Constructor	
	 *	
	 * @param string $where	 the where string (without WHERE)
	 * @param string $orderBy the other by string (with order by)
	 * @param DataBase $db the database (if null the database of system will be specify)
	 */	
	function __construct($where='', $orderBy = '', $db = null) {
		// special treat for this object cause of language
		$config = &SystemSite::getSiteConfig();
		$key = "label_{$config->language}";
		$this->$key = "S";
		
		parent::__construct('#__label_key', $where, $orderBy, $db);
	}	
	
}
?>